require("string")local file = io.open("writetest.txt", "w+")function OnWebSocketData(data)    if nil == file then        print("open file writetest.txt fail")    end    file:write("OnUartData from lua " .. data)    file:flush()    showdata("dfasdfsddfasda" .. data.."\r\n")end